package com.example.feign.mapper;

import com.example.feign.config.FeignConfig;
import com.example.feign.util.HiHystrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "eureka-client",configuration = FeignConfig.class,fallback = HiHystrix.class)
public interface EurekaClientFeign {
    @GetMapping("/get")
    String sayHiFromClientEureka(@RequestParam(value = "name") String name);
    @GetMapping("/hi")
    String sayHiClientEureka(@RequestParam(value = "name") String name);
}
